package b_wait_notify;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package a_wait_notify
 * @date 2024/4/7 下午6:48
 */
public class Cousumer implements Runnable {
    private Baozipu baozipu;

    public Cousumer(Baozipu baozipu) {
        this.baozipu = baozipu;
    }

    @Override
    public void run() {
        while (true) {
            try {
                Thread.sleep(100L);
                baozipu.getCount();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }

}
